package com.etlmaster.executor.scheduler;

import java.io.Serializable;

/**
 * @author Larry
 * @copyright Larry@etlMaster
 * @since 2017-09-10
 */
public class Proc implements Serializable{
	private String proc_name;
	private String cycle_id;
	private boolean concurrencyRun;
	private String param;
	private String agentId;
	public Proc(String proc_name,String cycle_id,boolean concurrencyRun,String param,String agentId){
		this.proc_name=proc_name;
		this.cycle_id=cycle_id;
		this.concurrencyRun=concurrencyRun;
		if(agentId==null||agentId.length()==0)
		{
			this.agentId="NULL";
		}else
			this.agentId=agentId;
		this.setParam(param);
	}
	public String getRunParam(){
		String str=" -f "+proc_name+" -t "+cycle_id+" "+"-agentId "+agentId+param;
		return str;
	}
	public String getProc_name() {
		return proc_name;
	}
	public void setProc_name(String proc_name) {
		this.proc_name = proc_name;
	}
	public String getCycle_id() {
		return cycle_id;
	}
	public void setCycle_id(String cycle_id) {
		this.cycle_id = cycle_id;
	}
	public boolean isConcurrencyRun() {
		return concurrencyRun;
	}
	public void setConcurrencyRun(boolean concurrencyRun) {
		this.concurrencyRun = concurrencyRun;
	}
	public String getParam() {
		return param;
	}
	public void setParam(String param) {
		this.param = param;
	}
	public String getAgentId() {
		return agentId;
	}
	public void setAgentId(String agentId) {
		this.agentId = agentId;
	}

}
